package com.ytjj.qmyx.admin.controller;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.admin.annotation.OperLog;
import com.ytjj.qmyx.admin.constants.SysLogConstants;
import com.ytjj.qmyx.admin.model.request.BankerBrandRequest;
import com.ytjj.qmyx.admin.service.BankerBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/bankerBrand")
public class BankerBrandController {

    @Autowired
    private BankerBrandService bankerBrandService;

    @PostMapping("/list")
    @OperLog(operModule = "品牌模块", operDesc = "品牌列表", operType = SysLogConstants.OPERATION_SELECT)
    public String selectList(@RequestBody BankerBrandRequest bankerBrandRequest) {
        return bankerBrandService.newSelectList(bankerBrandRequest);
    }

    @GetMapping("/dropList")
    @OperLog(operModule = "品牌模块", operDesc = "所属类目下拉框", operType = SysLogConstants.OPERATION_SELECT)
    public CommonResult dropList() {
        return CommonResult.success(bankerBrandService.dropList());
    }
}
